#!/bin/bash
# remove library in TSM
# 2015-10-27
# John

#$i=2
#while($i -lt 30)
for i in $( seq 0 29)
do
        echo ${i}
        dsm delete path ARCX385062740 drive${i} srctype=server desttype=drive library=GEAPT0011
        sleep 1
        dsm delete drive GEAPT0011 drive${i}
        #sleep 10
done
dsm delete path ARCX385062740 GEAPT0011 srctype=server desttype=library
sleep 5
dsm delete library GEAPT0011

exit 0
